package com.keldian.myqq.activity;

import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;

import com.keldian.myqq.R;

import java.util.List;

/**
 * Created by Administrator on 15-11-16.
 */
public class StartActivity extends Activity{




    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.start_activity);
        runActivity(this);
    }

    public void runActivity(final Context context){
        new Handler(new Handler.Callback() {
            @Override
            public boolean handleMessage(Message msg) {
                Intent intent = new Intent(StartActivity.this, Viewpager_activity.class);
                context.startActivity(intent);
                return false;
            }
        }).sendEmptyMessageDelayed(0,3000);
    }

    @Override
    protected void onPause() {
        super.onPause();
        finish();
    }


}
